﻿using System.Text;

namespace fastdb.Db.storage;

/// <summary>
///     数据库头部
/// </summary>
internal class DbHeader
{
    public string Version { get; set; } = "v0.1".PadRight(10);

    public string Name { get; set; } = "fastdb".PadRight(10);

    public byte[] ContentBytes
    {
        get
        {
            var headerInfo = Name + Version;
            return Encoding.UTF8.GetBytes(headerInfo.PadRight(96));
        }
    }
}